package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Author sym
 * @Description //
 *  1、导入mybatis-plus依赖
 *      <!--导入mybatis-plus依赖-->
 *         <dependency>
 *             <groupId>com.baomidou</groupId>
 *             <artifactId>mybatis-plus-boot-starter</artifactId>
 *             <version>3.3.1</version>
 *         </dependency>
 * 2、配置数据源
 *  1\导入数据库驱动
 *      <dependency>
 *             <groupId>mysql</groupId>
 *             <artifactId>mysql-connector-java</artifactId>
 *             <version>8.0.30</version>
 *      </dependency>
 *  2\编写application.yml
 *      spring:
         *   datasource:
         *     username: root
         *     password: root
         *     url: jdbc:mysql://192.168.148.150:3306/gulimall_pms
         *     driver-class-name: com.mysql.jdbc.Driver
 *3\配置mybatis-plus
 *  使用@MapperScan
 *
 * @Date 18:33 2022/8/8
 * @Param
 * @return
 **/
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
